#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
__title__ = ''
__author__ = 'tinxi'
__mtime__ = '2018/7/1'
# code is far away from bugs with the god animal protecting
    I love animals. They taste delicious.
    
'''
from django.urls import path
from . import views

#  应用命名空间
app_name = 'cms'

urlpatterns = [
	path('', views.index, name='index'),
	path('logout/', views.logout_view, name='logout'),
	path('write_news/', views.WriteNewsView.as_view(), name='write_news'),  # as_view()将类视图转成函数视图
	path('news_category/', views.new_category, name='new_category'),
	path('add_new_category/', views.add_new_category, name='add_new_category'),
	path('edit_category/', views.edit_category, name='edit_category'),
	path('delete_category/', views.delete_category, name='delete_category'),
	path('upload_file/', views.upload_file, name='upload_file'),  # 上传图片至本地服务器
	path('aliOOS/', views.aliOOS, name='aliOOS'),  # 上传文件至阿里云服务器
]
